package com.newcapec.lesson3;

/**
 *
 */
public class Car implements Cloneable{
    /**
     *
     */
    private String color;
    /**
     *
     */
    private String carNumber;

    public Car() {
    }

    public Car(String color, String carNumber) {
        this.color = color;
        this.carNumber = carNumber;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    @Override
    public String toString() {
        return "Car{" +
                "color='" + color + '\'' +
                ", carNumber='" + carNumber + '\'' +
                '}';
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
